function mostradivflutuante(){
	//alert("sddd");
	d = document.getElementById('divflutuante');
	//d.style.width="0px";
	//d.style.zIndex=-10;
	if (d.style.visibility == 'hidden'){
		d.style.visibility = 'visible';
	} else {
		d.style.visibility = 'hidden';
	}
}
function init(){
	mostradivflutuante();
        limpaCampos();
}

function limpaCampos() {
    nomePolitico.value = "";
    prometido.value = "";
}
function valido(){
	if ((nomePolitico.value == "") || (prometido.value=="")){
		alert("Todos os campos deves estar preenchidos !");
		return false;
	}
	return true;
}
function salvar(){
	if (valido()){
		mostradivflutuante();
                alert(" Salvo ! ");
                action.value="salvar";
		document.forms["myform"].submit();
	}
}

function cancelar(){
        nomePolitico.value = "";
        prometido.value = "";
        mostradivflutuante();
}